package cn.yl.pay.service.work;

import org.springframework.amqp.core.Queue;
import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.context.annotation.Bean;

@SpringBootConfiguration
public class RabbitmqConfig {

    // 配置一个工作模型队列
    @Bean
    public Queue payOrderRecordWork() {
        return new Queue("pay_order_record_work");
    }
}
